import {del, get,post} from "../utils/requers"
/* 
获取购物车数据
*/
export const loadCartsAPI=()=>get("/api/v1/shop_carts")
/* 
加入购物车数据
*/
export const addToCarAPI=(product,amount,price)=>post("/api/v1/shop_carts",{product,amount,price})
/* 
删除购物车
*/
export const delFromCarAPI=(id)=>del("/api/v1/shop_carts/"+id)